const mongoose = require("mongoose")
mongoose.connect('mongodb://localhost/lagou-admin')

// 获取用户集合模板
const User = mongoose.model('users',
    mongoose.Schema({
        username: String,
        password: String
    }))

const Position = mongoose.model('positions',
    mongoose.Schema({
        companyName: String,
        positionName: String,
        city: String,
        salary: String,
        publishTime: String
    }))

module.exports = {
    User, Position
}


